import Mock from 'mockjs'

Mock.mock('/subjectlist', {
    "subjectList|20": [{
        "id|+1": 1,
        "name": "@cword(10,30)",
        "type": "@integer(0,3)",
        "isOpen": false,
        "options|4-7": [{
            "id|+1": 1001,
            "val": "@cword(3,9)"
        }, ],
        "author": "@cname",
        "answer|1": ["A", "B", "C", "D"],
        "createTime": "@datetime",
        "desc": "@cword(20,100)"
    }]
})